<?php
class UpcomingEvent extends Upcoming {
	public $data = array();
	
// constructor ----------------------------------------------------------------------	
	public function __construct($key) {
		# set api key
		if(!$key) :
			die('No api key');
		endif;
		$this->apiKey = $key;	
	}
	
	public function search($params) {
		$xml = $this->send('event.search', $params);
		$data = $this->parse($xml);		
		$events = $this->formatEventsData($data['event']);
		return $events;		
	} // search	
	
	public function getInfo($params) {
		$xml = $this->send('event.getInfo', $params);
		$data = $this->parse($xml);			
		$this->data = $data['event_attr'];
		return $this;		
	} // getInfo
} // UpcomingEvent
?>
676452